home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / hack / 3_1_3 / sys / amiga / winproto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  4.5 KB  |  132 lines

  1. /*    SCCS Id: @(#)winproto.h    3.1    93/04/26    */
  2. /* Copyright (c) Gregg Wonderly, Naperville, Illinois,  1991,1992,1993. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. /* winreq.c */
  6. void EditColor ( void );
  7. void DrawCol ( struct Window *w , int idx , UWORD *colors );
  8. void DispCol ( struct Window *w , int idx , UWORD *colors );
  9. void amii_change_color( int, long, int );
  10. char *amii_get_color_string( );
  11. void amii_setpens ( void );
  12. void amii_getlin ( const char *prompt , char *bufp );
  13. void getlind ( const char *prompt , char *bufp , const char *dflt );
  14. char *amii_get_color_string( void );
  15. int filecopy( char *from, char *to );
  16. char *basename( char *str );
  17. char *dirname( char *str );
  18.  
  19. /* winstr.c */
  20. void amii_putstr ( winid window , int attr , const char *str );
  21. void outmore ( struct amii_WinDesc *cw );
  22. void outsubstr ( struct amii_WinDesc *cw , char *str , int len );
  23. void amii_putsym ( winid st , int i , int y , CHAR_P c );
  24. void amii_addtopl ( const char *s );
  25. void TextSpaces ( struct RastPort *rp , int nr );
  26. void amii_remember_topl ( void );
  27. int amii_doprev_message ( void );
  28. void flushIDCMP( struct MsgPort * );
  29. int amii_msgborder( struct Window * );
  30.  
  31. /* winkey.c */
  32. int amii_nh_poskey ( int *x , int *y , int *mod );
  33. int amii_nhgetch ( void );
  34. void amii_get_nh_event ( void );
  35. void amii_getret ( void );
  36.  
  37. /* winmenu.c */
  38. void amii_start_menu ( winid window );
  39. void amii_add_menu ( winid window , char ch , int attr , const char *str );
  40. void amii_end_menu ( winid window , char cancel , const char *str , const char *morestr );
  41. char amii_select_menu ( winid window );
  42. void DoMenuScroll ( int win , int blocking );
  43. int ReDisplayData ( winid win );
  44. void DisplayData ( winid win , int start , int where );
  45. void SetPropInfo ( struct Window *win , struct Gadget *gad , long vis , long total , long top );
  46.  
  47. /* amiwind.c */
  48. struct Window *OpenShWindow ( struct NewWindow *nw );
  49. void CloseShWindow ( struct Window *win );
  50. int ConvertKey ( struct IntuiMessage *message );
  51. int kbhit ( void );
  52. int kbhit ( void );
  53. int amikbhit ( void );
  54. int WindowGetchar ( void );
  55. WETYPE WindowGetevent ( void );
  56. void amii_cleanup ( void );
  57. #ifndef    SHAREDLIB
  58. void Abort ( long rc );
  59. #endif
  60. void CleanUp ( void );
  61. void flush_glyph_buffer ( struct Window *w );
  62. void amiga_print_glyph ( winid window , int color_index , int glyph );
  63. void start_glyphout ( winid window );
  64. void amii_end_glyphout ( winid window );
  65. struct NewWindow *DupNewWindow ( struct NewWindow *win );
  66. void FreeNewWindow ( struct NewWindow *win );
  67. void bell ( void );
  68. void amii_delay_output ( void );
  69. void amii_number_pad ( int state );
  70. #ifndef    SHAREDLIB
  71. void amiv_loadlib ( void );
  72. void amii_loadlib ( void );
  73. #endif
  74. void preserve_icon( void );
  75. void clear_icon( void );
  76.  
  77. /* winfuncs.c */
  78. void amii_destroy_nhwindow ( winid win );
  79. int amii_create_nhwindow ( int type );
  80. void amii_init_nhwindows ( void );
  81. void amii_clear_nhwindow ( winid win );
  82. void dismiss_nhwindow ( winid win );
  83. void amii_exit_nhwindows ( const char *str );
  84. void amii_display_nhwindow ( winid win , boolean blocking );
  85. void amii_curs ( winid window , int x , int y );
  86. void kill_nhwindows ( int all );
  87. void amii_cl_end ( struct amii_WinDesc *cw , int i );
  88. void cursor_off ( winid window );
  89. void cursor_on ( winid window );
  90. void amii_suspend_nhwindows ( char *str );
  91. void amii_resume_nhwindows ( void );
  92. void amii_bell ( void );
  93. void removetopl ( int cnt );
  94. void port_help ( void );
  95. void amii_print_glyph ( winid win , xchar x , xchar y , int glyph );
  96. void amii_raw_print ( const char *s );
  97. void amii_raw_print_bold ( const char *s );
  98. void amii_update_inventory ( void );
  99. void amii_mark_synch ( void );
  100. void amii_wait_synch ( void );
  101. void amii_setclipped ( void );
  102. void amii_cliparound ( int x , int y );
  103. void amii_set_text_font( char *font, int size );
  104.  
  105. /* winami.c */
  106. #ifdef    SHAREDLIB
  107. int __UserLibInit ( void );
  108. void __UserLibCleanup ( void );
  109. #endif
  110. void amii_askname ( void );
  111. void amii_player_selection ( void );
  112. void RandomWindow ( char *name );
  113. void amii_get_ext_cmd ( char *bufp );
  114. char amii_yn_function ( const char *prompt , const char *resp , char def );
  115. char amii_yn_function ( const char *query , const char *resp , char def );
  116. void amii_display_file ( const char *fn , boolean complain );
  117. void SetBorder ( struct Gadget *gd );
  118. void *malloc ( register unsigned size );
  119. void free ( void *q );
  120.  
  121. #ifdef    SHAREDLIB
  122. /* amilib.c */
  123. void amii_loadlib ( void );
  124. void amiv_loadlib ( void );
  125. void CleanUp ( void );
  126. void setup_librefs ( WinamiBASE *base );
  127. void Abort ( long rc );
  128. #endif
  129.  
  130. /* amiga:amirip.c */
  131. void FDECL(amii_outrip, ( winid tmpwin, int how ));
  132.